x86: altp2m cleanup work
authorPaul Lai <paul.c.lai@intel.com>
Thu, 29 Sep 2016 10:05:06 +0000 (12:05 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 29 Sep 2016 10:05:06 +0000 (12:05 +0200)
commitfb8be95ca0b5fc816fd2234925f95c3f82ead824
treea348614561d49931252c884659423095d22469d0
parente3b002f842c0de957bc685bc00331c2cb34204de
x86: altp2m cleanup work

Indent goto labels by one space.
Inline (header) altp2m functions.
In do_altp2m_op(), during the sanity check of the passed command,
return -EOPNOTSUPP if not a valid command.
In do_altp2m_op(), when evaluating a command, ASSERT_UNREACHABLE()
if the command is not recognizable.  The sanity check above should
have triggered the return of -EOPNOTSUPP.
Make hvm_funcs.altp2m_supported "bool" instead of "bool_t".
Make hvm_altp2m_supported() and altp2m_vcpu_emulate_ve() return
bool (rather than return void()).

Signed-off-by: Paul Lai <paul.c.lai@intel.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/hvm/hvm.c
xen/include/asm-x86/hvm/hvm.h